import Http from '../../http';

export const getList = function() {
    return Http.get('/UserPost/index') 
}

export const getEdit = function(id:number) {
    return Http.get('/UserPost/AddOrEdit',{id:id}) 
}
export const postAdd = function(from:any) {
    return Http.post('/UserPost/Create',from) 
}
export const putEdit = function(from:any) {
    return Http.put('/UserPost/Edit',from) 
}
export const delOne = function(id:number) {
    return Http.delete('/UserPost/Delete',{id:id}) 
}

